﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace BuisnessData
{
    public class MyCity
    {
        static MyCity _instance = new MyCity();
        ObservableCollection<Car> _cars = new ObservableCollection<Car>();
        public IEnumerable<Car> Cars
        {
            get{return _cars;}
        }
        ObservableCollection<Building> _buildings = new ObservableCollection<Building>(); 
        private MyCity()
        {
            for (int i = 0; i < 10; ++i)
            {
                _cars.Add( new Car(){Location= new GeographicLocation(22,22+3*i)});
            }
        }

        public static MyCity Instance
        {
            get { return _instance; }
        }
    }
}
